package com.lagou.job.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lagou.job.mapper.PositionMapper;
import com.lagou.job.pojo.Position;
import com.lagou.job.service.PositionService;
import com.lagou.job.vo.PositionVO;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 职位服务接口
 * @author yzh
 */
@Service
public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> implements PositionService<Position> {

    @Override
    public List<PositionVO> getHotPosition() {
        return this.baseMapper.getHotPosition();
    }

    @Override
    public PositionVO getPositionDetail(Integer pId) {
        return this.baseMapper.getPositionDetail(pId);
    }
}
